﻿using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using akibank.Dossier.DossierContract;

namespace akibank.Dossier.Server
{
  partial class DossierContractFunctions
  {

    /// <summary>
    /// Проверка документа на вид
    /// </summary>      
    [Remote]
    public bool DokumentKindCheck(Guid targetGuid)
    {
      var targetDocKind = Sungero.Docflow.PublicFunctions.DocumentKind.GetNativeDocumentKind(targetGuid);
      return _obj.DocumentKind.Equals(targetDocKind);
    }

  }
}